import request from '../../request/request_axios.js';

// 添加关注 - 用户
export const addFollowAPI = (userId, workId) => {
    return request({
        url: `/userFollows/follow/${userId}/${workId}`,
        method: 'post'
    });
};

// 取消关注 - 用户
export const deleteFollowAPI = (userId, workId) => {
    return request({
        url: `/userFollows/unfollow/${userId}/${workId}`,
        method: 'delete'
    });
};

// 查询是否关注 - 用户
export const isFollowedAPI = (userId, workId) => {
    return request({
        url: `/userFollows/isFollowed/${userId}/${workId}`,
        method: 'get'
    });
};

// 获取用户关注的医生列表
export const getSelfFollowsAPI = () => {
    return request({
        url: '/user/follows',
        method: 'get'
    });
};